package com.example.service;

import org.springframework.util.concurrent.ListenableFuture;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

/**
 * @author long
 * @date 2024/8/21 19:39
 */
public interface AsyncService {

    String testEventPublish();

    Future<String> asyncFuture();

    ListenableFuture<String> asyncListenableFuture();

    CompletableFuture<String> asyncCompletableFuture();

    void asyncWithoutResult();



}
